from cv2 import cv2
import numpy as np
#由三种蓝色的rgb
blues =[[77, 77, 255], [102, 102, 255], [128, 128, 255]]
img0 = np.ones((2,2),dtype=np.uint8) # 根据点的RGB，生成一张2x2的图片
bgr_img = cv2.cvtColor(img0,cv2.COLOR_GRAY2BGR) # 调用OpenCV中的cv2.cvtColor()函数，将RGB图片转为HSV图片
blues_hsv = []
for i in blues:
    r,g,b = (i[0],i[1],i[2])
    bgr_img[:,:,:] = (b,g,r)
    HSV = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2HSV)
    blues_hsv.append(HSV[1,1,:].tolist()) # 取出一个像素点的HSV值
print(blues_hsv)